package com.TestDemo.Test202203To04;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2022/05/20/15:18
 * @Description:
 * @Target:
 */
public class runTest {
    public static void main(String[] args) {
        run1("run_one");
        run2("run_two");
        run3("run_three");
    }



    static void run1(String ss){
        ss += "1";
        System.out.println(ss);
        if (!ss.contains("111")){
            run1(ss);
        }

    }



    static void run2(String ss){
        ss += "2";
        System.out.println(ss);
        if (!ss.contains("222")){
            run2(ss);
        }

    }



    static void run3(String ss){
        ss += "3";
        System.out.println(ss);
        if (!ss.contains("333")){
            run3(ss);
        }

    }
}
